home *** CD-ROM | disk | FTP | other *** search
/ Know Your Hockey - The Greatest Player Resource / Know Your Hockey: The Greatest Player Resource.iso / hockey / director / ktgcst.cst / 00075_Script_Screen Prompts < prev    next >
Text File  |  1998-09-28  |  950b  |  34 lines

  1. global gPrompts
  2.  
  3. -- this script reads the appropriate screen prompts in from the text member "ScreenPrompts"
  4. -- gPrompts is used in the rollover script to set the prompt window
  5. on initPrompts
  6.   set the ItemDelimiter to ","
  7.   set gPrompts = []
  8.   repeat with x = 1 to 48
  9.     set theprompt = item 2 of line x of field "ScreenPrompts"
  10.     append(gPrompts, thePrompt)
  11.   end repeat
  12.   set the forecolor of  member "promptwindow" = 0
  13. end
  14.  
  15.  
  16. on setprompt a
  17.   if a < 1 or a > 43 then
  18.     put "Select an item" into field "promptwindow"
  19.     exit
  20.   end if
  21.   set myprompt = (getat(gPrompts,a) ) 
  22.   if myprompt = "" then set  myprompt = "Select an item"
  23.   put myprompt into field "promptwindow"
  24. end
  25.  
  26. on loadnewlist newlist
  27.   set mylist = "List" & newlist
  28.   set the ItemDelimiter to ","
  29.   set gPrompts = []
  30.   repeat with x = 1 to 48
  31.     set theprompt = item 2 of line x of field mylist
  32.     append(gPrompts, thePrompt)
  33.   end repeat
  34. end